<%--
  Created by IntelliJ IDEA.
  User: 20275
  Date: 2023/11/15
  Time: 17:31
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head lang="en">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">


    <link href="${pageContext.request.contextPath}/vendor/bootstrap/css/bootstrap.min.css" type="text/css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/dist/css/sb-admin-2.css" rel="stylesheet">

    <title>注册</title>
</head>
<body>

<div class="container">
    <div class="row">
        <div class="col-md-4 col-md-offset-4">
            <div class="login-panel panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title">用户注册</h3>
                    <% if(pageContext.findAttribute("message") != null){ %>
                        <div class="alert alert-${alert_}"  role="alert" style="margin-top: 15px;">${message}</div>
                    <%
                            session.removeAttribute("message");
                    } %>

                </div>
                <div class="panel-body">
                    <form role="form" method="post" action="${pageContext.request.contextPath}/register">
                        <fieldset>
                            <div class="form-group">
                                <input class="form-control" placeholder="学号/职工号" name="number" type="text" required>
                            </div>
                            <div class="form-group">
                                <input class="form-control" placeholder="账户" name="account" type="text" required>
                            </div>
                            <div class="form-group">
                                <input class="form-control" placeholder="密码" name="password" type="password" required>
                            </div>
                            <div class="checkbox">
                                <label> <input type="hidden"> </label>
                                <label style="float: right"><a href="${pageContext.request.contextPath}/login.jsp">返回登录</a></label>
                            </div>
                            <input type="submit" value="注册" class="btn btn-lg btn-success btn-block"/>
                        </fieldset>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- jQuery -->
<script src="${pageContext.request.contextPath}/vendor/jquery/jquery.min.js"></script>

<!-- Bootstrap Core JavaScript -->
<script src="${pageContext.request.contextPath}/vendor/bootstrap/js/bootstrap.min.js"></script>

<!-- Metis Menu Plugin JavaScript -->
<script src="${pageContext.request.contextPath}/vendor/metisMenu/metisMenu.min.js"></script>

<!-- Custom Theme JavaScript -->
<script src="${pageContext.request.contextPath}/dist/js/sb-admin-2.js"></script>

</body>
</html>
